package com.wonder.app.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wonder.app.domain.PrdInstock;
import com.wonder.app.domain.StkTransfer;
import com.wonder.app.domain.StkTransferApp;
import com.wonder.app.domain.StkTransferAppDetaill;
import com.wonder.app.request.PrdInstockRequest;
import com.wonder.app.request.StkTransferRequest;

import java.util.List;
import java.util.Map;

public interface StkTransferService extends IService<StkTransfer>{

    /**
     * 工序汇报分页
     * @param
     * @param page
     * @return
     */
    public  IPage<StkTransfer> selectList(StkTransferRequest stkTransferRequest, Page<StkTransfer> page);
    /**
     * 详情Stkotherout
     * @param map
     * @return
     */
    Map<String, Object> getStkTransferDetail(Map<String, Object> map);


    Map<String, Object> getTransferList(Map<String, Object> map);


    boolean createTransfer(Long user_id,String userName,Map<String, Object> map) throws Exception;

    boolean createTransferTemp(Long userId, String userName, Map<String, Object> map) throws Exception;

    Map<String,Object>  getTransferTemp(Long userId, String userName, Map<String, Object> map);

    boolean deleteTransferTemp(Long userId, String userName, Map<String, Object> map);

    Boolean createTransferByYTransferApp(Long user_id, String userName, StkTransferApp stkTransferApp, List<StkTransferAppDetaill> stkTransferAppDetaillList)throws Exception;

    boolean createTransferTempByTray(Long userId, String userName, Map<String, Object> map) throws Exception;
}
